package com.phpxiu.app.view.dialog;

import android.app.Dialog;
import android.content.Context;
import android.view.View;
import android.widget.ListView;

import com.phpxiu.app.adapter.LogListAdapter;
import com.phpxiu.app.kkylive.R;

/**
 * @file
 * @brief 显示的debug日志信息界面
 * @author 吴金洲
 * @note 显示的debug日志信息
 *
 */
public class LogDialog extends Dialog implements View.OnClickListener {
    private ListView mListView;
    private LogListAdapter mAdapter;
    public LogDialog(Context context,int r) {
        super(context, R.style.interactiveDialog);
        mAdapter=new LogListAdapter(context);
        init(context);
    }

    final private void init(Context context){
        setContentView(R.layout.log_dialog);
        findViewById(R.id.close_btn).setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.close_btn:
                dismiss();
                break;
        }
    }
}
